package com.avengers.common.bean.enums;

import com.avengers.core.bean.enums.RegistrarCode;

import java.util.LinkedHashMap;

/**
 * @author zhangnan
 * @since 2022/1/21 2:50 下午
 **/
public enum DomainTransferBackRegistrar {
    aliyun(RegistrarCode.aliyun.name(), RegistrarCode.aliyun.comment),
    xinWang(RegistrarCode.xinWang.name(), RegistrarCode.xinWang.comment + "(" + RegistrarCode.xinWang.comment + "/" + RegistrarCode.cne.comment + ")"),
    eName(RegistrarCode.eName.name(), RegistrarCode.eName.comment),
    _22(RegistrarCode._22.name(), RegistrarCode._22.comment),
    _66(RegistrarCode._66.name(), RegistrarCode._66.comment),
    zzy(RegistrarCode.zzy.name(), RegistrarCode.zzy.comment),
    juMing(RegistrarCode.juMing.name(), RegistrarCode.juMing.comment),
    regCn("regCn", "REG(世纪创联/千喜网络/微创网络)"),
    longMing("longMing", "龙名网(世纪创联/千喜网络/微创网络)"),
    naWang(RegistrarCode.naWang.name(), RegistrarCode.naWang.comment),
    bizCn(RegistrarCode.bizCn.name(), RegistrarCode.bizCn.comment),
    _190(RegistrarCode._190.name(), RegistrarCode._190.comment),
    tencent(RegistrarCode.tencent.name(), RegistrarCode.tencent.comment),
    dropCatch(RegistrarCode.dropCatch.name(), RegistrarCode.dropCatch.comment),
    goDaddy(RegistrarCode.goDaddy.name(), RegistrarCode.goDaddy.comment);

    public String value;
    public String comment;

    DomainTransferBackRegistrar(String value, String comment) {
        this.value = value;
        this.comment = comment;
    }

    public static LinkedHashMap<String, String> getRegistrarList() {
        LinkedHashMap<String, String> finalMap = new LinkedHashMap<>();
        for (DomainTransferBackRegistrar domainRewindRegistrar : values()) {
            if (domainRewindRegistrar.equals(regCn)) {
                continue;
            }
            finalMap.put(domainRewindRegistrar.value, domainRewindRegistrar.comment);
        }
        return finalMap;
    }
}
